#include <iostream>
#include <string>
#include "queuetp.h"
int main_nested(int argc, char const *argv[])
{
    using std::string;
    using std::cin;
    using std::cout;
    using std::endl;
    cout << "开始测试queuetp" << endl;
    QueueTP<string> cs(5);
    string temp;
    while (!cs.isfull())
    {
        cout << "Please input your name. You will be served in the order of arrival.\n name: ";
        getline(cin, temp);
        cs.enqueue(temp);        
    }
    while (!cs.isempty())
    {
        cs.dequeue(temp);
        cout << "Now processing " << temp << "...\n";
    }
    
    
    return 0;
}
